package com.niiwoo.civet.trade.dao.mapper;

import com.niiwoo.civet.trade.dao.entity.LoanBusinessInfo;
import com.niiwoo.civet.trade.enums.ProjectTypeEnum;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LoanBusinessInfoMapperExt extends LoanBusinessInfoMapper {

    LoanBusinessInfo selectByProductType(@Param("productType") Byte productType);

    LoanBusinessInfo selectByProjectTypeEnum(@Param("projectTypeEnum") ProjectTypeEnum projectTypeEnum);

    /**
     * 查询可用的产品列表
     * @return
     */
    List<LoanBusinessInfo> queryProductListEnable();
}